package com.dongrj.framework.starter.log.constant;

/**
 * @author dongrongjun
 * @date 2020/06/28
 */
public class Constant {

    public static final String TRACE_ID = "traceId";

    public static final String URI = "uri";

    public static final String ELK_USER_ID = "elkUserId";

    public static final class Env {
        public static final String DEV = "dev";
        public static final String TEST = "test";
        public static final String PRE = "pre";
        public static final String PROD = "prod";
    }

    public static final class App {
        public static final String APP_ID = "app.id";
        public static final String SPRING_ACTIVE = "spring.profiles.active";
        public static final String APP_ENV = "APP_ENV";
        public static final String APP_INFO_FILE = "/META-INF/appconfig.properties";
    }

    public static final class Code {
        public static final Integer SUCCESS = 200;
        public static final Integer FAIL_BIZ = 500;
        public static final Integer FAIL_SYS = 600;
        public static final Integer FAIL_LOGIN = 501;
    }

    public static final class AppId {
        public static final String GOODS = "zhengshang-goods";
        public static final String VIDEO = "zhengshang-video";
        public static final String PAY = "zhengshang-pay";
        public static final String ORDER = "zhengshang-order";
        public static final String PERSONAL = "zhengshang-personal";
    }
}
